#include "browsercontrol.h"

#include <QWebFrame>

#include <QDebug>

BrowserControl::BrowserControl(QObject *parent) :
    QObject(parent)
{

}

void BrowserControl::close()
{
    this->mainWindow->close();
}

void BrowserControl::showMaximized()
{
    if(this->mainWindow->isMaximized()) {
        this->mainWindow->showNormal();
    } else {
        this->mainWindow->showMaximized();
    }
}

void BrowserControl::showMinimized()
{
    this->mainWindow->showMinimized();
}

void BrowserControl::showFullscreen()
{
    this->mainWindow->showFullScreen();
}
